import request from '@/utils/request'

export default{
  //添加文章内容
  addContent(blogContent){
    return request({
          url:`/blogservice/content/addContent`,
          method:'post',
          data:blogContent
      })
  },
  //根据文章id获取文章内容
  findContentbyBlogId(blogId){
    return request({
        url:`/blogservice/content/findContentbyBlogId/${blogId}`,
        method:'get',
    })
  },
  //修改文章内容
  updateContent(blogContent){
    return request({
        url:`/blogservice/content/updateContent`,
        method:'post',
        data:blogContent
    })
  },
  //删除文章内容
  deleteContent(blogId){
    return request({
        url:`/blogservice/content/${blogId}`,
        method:'delete',
    })
  }

}